#ifndef _DEV_LED_H
#define _DEV_LED_H

#include "device_conf.h"

// LED引脚定义
#ifdef STM32F10X
#include "stm32f10x.h"

#define LED_RCC_APBx                    RCC_APB2Periph_GPIOB	//定义OLED端口时钟总线
#define LED_RCC_APBx_CMD(APBx, state)   RCC_APB2PeriphClockCmd(APBx, state)
#define LED_GPIOx                       GPIOB
#define LED1		                    GPIO_Pin_10
#define LED2		                    GPIO_Pin_11
//#define LED3		                    GPIO_Pin_7
#define LED_GPIO_Pin                    (LED1 | LED2)  // (LED1 | LED2 | LED3)

#endif

void led_init(void); // LED初始化
void led_blink(uint16 cycle,uint16 time); // LED闪烁
#endif
